﻿<phone:PhoneApplicationPage 
    x:Class="OneByOneSolitaire.Settings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls">
    
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="One by One Solitaire" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <controls:Pivot Margin="0, -36, 0, 0">
                <controls:PivotItem Header="General">
                    <Canvas Name="canvas1" Height="480" HorizontalAlignment="Left" Margin="50,0,0,0" VerticalAlignment="Top" Width="320">
                        <Image Height="480" HorizontalAlignment="Left" Name="background1" Stretch="None" VerticalAlignment="Top" Width="320" Source="/OneByOneSolitaire;component/Images/background.png" />
                        <TextBlock Height="56" Name="textBlock1" Text="Select a ball" Canvas.Left="20" Canvas.Top="19" FontSize="32" Width="170" />
                        <Image Height="63" Canvas.Top="85" Canvas.Left="20" Name="ball1" Source="/OneByOneSolitaire;component/Images/bolita-blanca-celeste-amarilla-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball1_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="85" Canvas.Left="89" Name="ball2" Source="/OneByOneSolitaire;component/Images/bolita-azul-vidrio-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball2_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="85" Canvas.Left="166" Name="ball3" Source="/OneByOneSolitaire;component/Images/bolita-lechera-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball3_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="85" Canvas.Left="243" Name="ball4" Source="/OneByOneSolitaire;component/Images/bolita-madera-oscura-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball4_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="150" Canvas.Left="20" Name="ball5" Source="/OneByOneSolitaire;component/Images/bolita-madera-clara-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball5_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="150" Canvas.Left="89" Name="ball6" Source="/OneByOneSolitaire;component/Images/bolita-vidrio-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball6_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="150" Canvas.Left="166" Name="ball7" Source="/OneByOneSolitaire;component/Images/bolita-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball7_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="150" Canvas.Left="243" Name="ball8" Source="/OneByOneSolitaire;component/Images/bolita-blanco-negro-sombra.png" Stretch="None" Width="61" MouseLeftButtonUp="ball8_MouseLeftButtonUp" />
                        <Image Height="63" Canvas.Top="80" Canvas.Left="25" Name="box" Source="/OneByOneSolitaire;component/Images/box.png" Stretch="None" Width="61" />
                        <CheckBox Content="Allow diagonal moves" Height="72" Name="chkDiagonalMoves" Checked="chkDiagonalMoves_Checked" Canvas.Left="26" Canvas.Top="206" />
                    </Canvas>
                </controls:PivotItem>
                <controls:PivotItem Header="Players">
                    <Canvas Name="canvas2" Height="480" HorizontalAlignment="Left" Margin="50,0,0,0" VerticalAlignment="Top" Width="320">
                        <Image Height="480" HorizontalAlignment="Left" Name="background2" Stretch="None" VerticalAlignment="Top" Width="320" Source="/OneByOneSolitaire;component/Images/background.png" />
                        <TextBlock Height="46" Name="textBlock2" Text="Players" Canvas.Left="19" Canvas.Top="16" FontSize="32" Width="109" />
                        <ListBox Height="136" Name="lsPlayers" Width="284" Canvas.Left="20" Canvas.Top="137" Background="#BFFFFFFF" BorderBrush="#BFFFFFFF" Foreground="Black" SelectionChanged="lsPlayers_SelectionChanged" BorderThickness="0"></ListBox>
                        <TextBox Canvas.Left="10" Canvas.Top="69" Height="71" Name="txPlayer" Text="" Width="220" />
                        <Button Canvas.Left="157" Canvas.Top="11" Content="New player" Height="71" Name="cmdNewPlayer" Width="160" FontSize="20" Click="cmdNewPlayer_Click" />
                        <TextBlock Canvas.Left="19" Canvas.Top="282" FontSize="32" Height="46" Name="textBlock3" Text="Games" Width="109" />
                        <ListBox Canvas.Left="20" Canvas.Top="326" Height="136" Name="lsGames" Width="284" Background="#BFFFFFFF" BorderBrush="#BFFFFFFF" Foreground="Black" SelectionChanged="lsGames_SelectionChanged" />
                        <Button Canvas.Left="216" Canvas.Top="69" Content="Save" FontSize="20" Height="71" Name="cmdSave" Width="101" Click="cmdSave_Click" />
                    </Canvas>
                </controls:PivotItem>
            </controls:Pivot>
            <Button Content="Done" Height="72" HorizontalAlignment="Right" Margin="0,597,160,0" Name="cmdDone" VerticalAlignment="Top" Width="125" FontSize="20" Click="cmdDone_Click" />
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
